package com.xuecheng.checkcode.feignclient;



import com.xuecheng.checkcode.fallback.AuthClientFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "auth-service", fallbackFactory = AuthClientFactory.class)
@RequestMapping("/auth")
public interface AuthServiceClient {

    @PostMapping("/phone")
    void sendSms(@RequestParam(value = "param1")String param1);

}
